package com.sojpt.boot.controller.business;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;
import com.jfinal.plugin.activerecord.SqlPara;
import com.sojpt.boot.controller.business.dao.LkyScoreTableMapper;
import com.sojpt.boot.ui.iview.IViewController;
import com.sojpt.model.bo.LkyScoreTable;
import com.sojpt.util.WordUtils;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

/**
 * Description: 本类用于成绩评定
 * Created by JYN_LL on 2020/2/17 17:03
 */
@RestController
@RequestMapping("/admin/assessment/")
public class LkyAssessmentAdminController extends IViewController {



    @PostMapping("assessmentFileCount")
    public void assessmentFileCount(){
        Map<String,String> map =new HashMap<>();
        map.put("sid",getPara("sid"));
        map.put("uid",getPara("uid"));
        SqlPara sqlPara = Db.getSqlPara("lky_assessment.selectFile",map);
        Page<Record> page = Db.paginate(pageNumber(), pageSize(), sqlPara);
        renderJson(page);
    }




}
